#include "LaserSensor.h"
#include <iostream>

LaserSensor::LaserSensor(ros::NodeHandle n)	{
	s = n.subscribe("/base_scan", 1000, &LaserSensor::laserScanCallback, this);
}

void LaserSensor::laserScanCallback(const SensorMessages &msg)	{
	sensorReadings = msg;
}

SensorMessages LaserSensor::scan()	{
	//std::cout << "in laser scanner " << std::endl;
	return sensorReadings;
}

